import request from '@/utils/request'
const apiUrl = '/api/resignation-certificate';
// 获取离职证明分页列表
export function getResignationCertificatePage(params) {
    return request({
        url: `${apiUrl}/page`,
        method: 'get',
        params
    })
}

// 根据ID获取离职证明
export function getResignationCertificateById(id) {
    return request({
        url: `${apiUrl}/${id}`,
        method: 'get'
    })
}

// 保存或更新离职证明
export function saveResignationCertificate(data) {
    return request({
        url: `${apiUrl}/save`,
        method: 'post',
        data
    })
}

// 删除离职证明
export function deleteResignationCertificate(ids) {
    return request({
        url: `${apiUrl}/delete`,
        method: 'delete',
        data: ids
    })
} 